str1 ='hello_python'

# while遍历字符串

i = 0
while i < len(str1):
    print(str1[i])
    i += 1



#for遍历字符串
# for a in str1:
#     print(a)